/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package MobileCLient;

/**
 *
 * @author Mr Bao
 */
public class MobileClient implements IChatClient, IChatServer {

    private String host;
    private int port;
    private IChatServer server;
    private long userId;

    public MobileClient(String host, int port) {
        this.host = host;
        this.port = port;
    }

    public void ConnectionFailed() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void SetUserId(long userId) {
        this.userId = userId;
    }

    public void Login(String username, String password, boolean invisible) {
        server.Login(username, password, invisible);
    }

    public void Logout(long userId) {
        server.Logout(userId);
    }

    public void SendMessage(String to, String message) {
        server.SendMessage(to, message);
    }

    public void SendBuzz(String to) {
        server.SendBuzz(to);
    }

    public void ChangeStatus(String newStatus, boolean showBusyIcon) {
        server.ChangeStatus(newStatus, showBusyIcon);
    }

    public void ChangeStatus(String statusType) {
        server.ChangeStatus(statusType);
    }

    public void Invisible(boolean invisible) {
        server.Invisible(invisible);
    }
}
